module.exports = {
    //随机uid
    setUid() {
        return Math.floor(Math.random() * 1000);
    },
    //随机手机号
    generateRandomPhoneNumber() {
        const prefixList = ["134", "135", "136", "137", "138", "139", "150", "151", "152", "157", "158", "159", "182", "183", "184", "187", "188", "147", "178", "1705", "1709"];

        const randomPrefix = prefixList[Math.floor(Math.random() * prefixList.length)];
        let randomSuffix = "";
        for (let i = 0; i < 8; i++) {
            randomSuffix += Math.floor(Math.random() * 10);
        }
        return randomPrefix + randomSuffix;
    },
    // 随机姓名
    generateRandomName() {
        const surnames = ["张", "李", "王", "赵", "刘", "陈", "杨", "黄", "周", "吴"];
        const givenNames = ["小明", "小红", "小刚", "小丽", "小美", "小强", "小花", "小飞"];
        const randomSurname = surnames[Math.floor(Math.random() * surnames.length)];
        const randomGivenName = givenNames[Math.floor(Math.random() * givenNames.length)];
        return randomSurname + randomGivenName;
    }

}




